{% extends 'CustomExamBundle::layout.html.twig' %} {% import
'TopxiaWebBundle::macro.html.twig' as macro %} {% block title %}组卷 - {{
parent() }}{% endblock %} {% block head_styles %}
<style>
.pagination {
	margin: 0px;
}
</style>
{% endblock %} {% block head_scripts %}
<script type="text/template" id="tree-list-content">
        <ul class="" style="display:block;">
            <%#category%>
            <li class="fn-clear">
                <div class="fn-clear tree-title<%depth%>">
                    <a href="javascript:void(0)" class="icon <%depth%>" data-url_id="<%id%>"></a>
                    <a href="javascript:void(0)" class="item" data-nselect="<%id%>"><%name%></a>
                </div>
            </li>
            <%/category%>
        </ul>
</script>
<script type="text/template" id="question-cart-content">
        <h4>已选试题(<span><%totalCount%></span>)<a href="javascript:void(0)" class="green-text empty-btn" style="float: right;">全部清空</a></h4>
        <div class="question-table">
            <table class="data-table">
                <%#types%>
                <tr>
                    <td class="first-col" id="left-question-cart-name<%id%>"><%name%></td>
                    <td class="second-col"><%count%></td>
                    <td class="third-col"><div class="percent-line"><div class="percent-text"><span>0</span>%</div></div></td>
                    <td class="forth-col"><a href="javascript:void(0)" class="del-btn" data-id="<%id%>"><span class="glyphicon glyphicon-remove-circle"></span>删除</a></td>
                </tr>
                <%/types%>
            </table>
        </div>
</script>
{% endblock %}

{% set parentId = parentQuestion.id|default(0) %} {% set
script_controller = 'question/question' %} {% block content %}
<input type="hidden" value="{{course.id }}" id="courseId">
<input type="hidden" value="{{question.id }}" id="questionId">
<div class="row">

	<div class="col-md-3">
		<div class="category-list" data-spy="affix" data-offset-top="200">
			<div class="panel panel-default">
				<div class="panel-body">

					<div class="list-group-panel">
						<div class="list-group-heading">试题列表</div>
						<div class="list-group">
							<div class='tree-list'></div>
						</div>
					</div>

					<div class="question-cart"></div>

					<div class="preview-btn"
						style="display: block; text-align: center;">
						<a id="sortPaper" class="btn btn-info btn-sm  mls"> 试卷排序 </a>
                        <a id="setPaperScore" class="btn btn-info btn-sm mls"> 试卷评分设置 </a>
					</div>

				</div>
			</div>
		</div>
	</div>

	<div class="col-md-9">
		{% block main %}

		<div class="question-content panel panel-default panel-col">
			<div class="panel-heading">

				<div class="filter-box">
                    <ul class="fn-clear nav nav-pills nav-mini">
                        <li class="active"><a href="javascript:void(0)"  class="active question-nav-link"  data-grade="0">全部年级</a></li>
                        {% for key, value in grades %}
                            <li><a href="javascript:void(0)" class="question-nav-link"  data-grade="{{ key }}">{{value}}</a></li>
                        {% endfor %}
                    </ul>

                    <ul class="fn-clear nav nav-pills nav-mini">
                        <li class="active"><a href="javascript:void(0)"  class="active question-nav-link"  data-subject="0">全部科目</a></li>
                        {% for key, value in subjects %}
                            <li><a href="javascript:void(0)" class="question-nav-link"  data-subject="{{ key }}">{{value}}</a></li>
                        {% endfor %}
                    </ul>

					<ul class="fn-clear nav nav-pills nav-mini">
						<li class="active"><a href="javascript:void(0)"  class="active question-nav-link"  data-type="0">全部题型</a></li>
						{% for key, value in questionTyles %}
						<li><a href="javascript:void(0)" class="question-nav-link"  data-type="{{ key }}">{{value}}</a></li>
						{% endfor %}
					</ul>

					<ul class="fn-clear nav nav-pills nav-mini">
						<li class="active"><a href="javascript:void(0)" class="active question-nav-link"  data-difficulty="0">全部难度</a></li>
						 {% for key, value in difficultys %}
						<li><a href="javascript:void(0)"  class="question-nav-link"  data-difficulty="{{ key }}">{{value}}</a></li>
						{% endfor %}
					</ul>
				</div>

			</div>

			<div class="panel-body " id="quiz-table-container">

				<div class="question-list"></div>

			</div>
		</div>


		{% endblock %}
	</div>
</div>
{% endblock %}
